import 'package:industry_net/base/common/date_format/date_util.dart';
import 'package:industry_net/pages/news/main/models/comment.dart';

enum NewsType { text, video, tiro, rich, images }

class NewsModel {
  bool isPraised = false;
  bool isAnimating = false;
  NewsType type = NewsType.text;
  List<NewsCommentModel>? comments;
  var createTime = DateTime.fromMillisecondsSinceEpoch(
      DateTime.now().millisecondsSinceEpoch - 400 * 24 * 60 * 1000);

  late String createTimeStr;

  NewsModel() {
    createTimeStr = DateUtil.format(createTime);
  }
}
